import { defHttp } from "@/utils/http";

// 设备类型 API
export const catEquipmentsApi = {
	// 查询设备类型分页
	catEquipmentsPage: async (params: any) => {
		return await defHttp.get({ url: `/whs/cat-equipments/page`, params });
	},

	// 新增设备类型
	catEquipmentsCreate: async (data: any) => {
		return await defHttp.post({ url: `/whs/cat-equipments/create`, data });
	},

	// 修改设备类型
	catEquipmentsuUpdate: async (data: any) => {
		return await defHttp.put({ url: `/whs/cat-equipments/update`, data });
	},

	// 删除设备类型
	catEquipmentsDelete: async (id: number) => {
		return await defHttp.delete({ url: `/whs/cat-equipments/delete?id=` + id });
	}
};
